package com.aaa.web.dao.ipermissiondao;

import com.aaa.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component
public interface IPermissionDao {
    List<Permission> getAllPermissionParent();
    List<Permission> getAllPermissionChild(Integer permissionid);
    List<Permission> getPermissionParentByEmp(Integer id);
    List<Permission> getPermissionChildByEmp(Map map);

    List<Map> getPermission();

    List<Permission> getPermissionCount();

    Integer updatePerState(Map map);

    Integer getStateById(Integer id);

    Integer editPer(Permission permission);

    String[] selectShiro(Integer employeeid);

}
